package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.List;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import android.text.TextUtils;

import net.wxxr.http.interfaces.IJsonParser;

public class DialogueBean implements IJsonParser, Serializable {

	private static final long serialVersionUID = 1L;
	private List<Integer> actor_ids;
	private int dialogue_id;
	
	public List<Integer> getActor_ids() {
		return actor_ids;
	}

	public void setActor_ids(List<Integer> actor_ids) {
		this.actor_ids = actor_ids;
	}

	public int getDialogue_id() {
		return dialogue_id;
	}

	public void setDialogue_id(int dialogue_id) {
		this.dialogue_id = dialogue_id;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		if (!TextUtils.isEmpty(json)) {
			GsonBuilder builder = new GsonBuilder();
			Gson gson = builder.create();
			return gson.fromJson(json, DialogueBean.class);
		}
		return null;
	}

}
